<?php
/* @var $this FileController */
/* @var $data File */
?>

<div class="view">

	<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::encode($data->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('size')); ?>:</b>
	<?php echo Yii::app()->format->formatNumber($data->size); ?> bytes
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('file')); ?>:</b>
	<?php
	$htmlOptions = array(
		'title'=>$data->name,
	);
	$url = $this->createUrl('download', array('id'=>$data->id));
	echo CHtml::link('Download', $url, $htmlOptions);
	?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('note')); ?>:</b>
	<br />
	<?php echo Yii::app()->format->formatNtext($data->note); ?>

</div>